package com.itheima.model.common.feign.fallback;

import com.itheima.model.common.pojos.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient("heima-service-sso")
public interface UserClient {

    @PostMapping("/admin/checkToken")
    User checkToken(@RequestBody String token);
}
